package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Finance;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface FinanceMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Finance finance);

    Finance selectByPrimaryKey(Long id);

    List<Finance> selectAll();

    int updateByPrimaryKey(Finance record);

    void updateByUserId(@Param("id") Long id, @Param("balance") BigDecimal balance);

    Finance selectByUserId(Long userId);
}